home *** CD-ROM | disk | FTP | other *** search
Text File | 1986-12-05 | 1.0 KB | 47 lines | [TEXT/MPS ] |
- set ask "request 'Structure Level:' "
- export ask
-
- AddMenu C 'top/1' 'find • "{active}"'
- AddMenu C 'bottom/2' 'find ∞ "{active}"'
- AddMenu C '(-' ''
-
- AddMenu C 'for/4' ∂
- 'begin;∂
- set lvl `{ask}`;∂
- echo "for (x;;)∂n ∂{ ∂n ∂}";∂
- adjust -l `evaluate {lvl} * {tab}` \∂{\:/∂}/ "{active}";∂
- cut !1 "{active}";∂
- find \x\ "{active}";∂
- end'
-
- AddMenu C 'if/I' ∂
- 'begin;∂
- set lvl `{ask}`;∂
- echo "if (x)∂n ∂{ ∂n ∂}";∂
- adjust -l `evaluate {lvl} * {tab}` \∂{\:/∂}/ "{active}";∂
- cut !1 "{active}";∂
- find \x\ "{active}";∂
- end'
-
- AddMenu C 'if_else/E' ∂
- 'begin;∂
- set lvl `{ask}`;∂
- set t `evaluate {lvl} * {tab}`;∂
- echo "if (x)∂n ∂{ ∂n ∂}∂nelse∂n ∂{ ∂n ∂}";∂
- find \x\ "{active}";∂
- adjust -l {t} /∂{/:/else/ "{active}";∂
- adjust -l {t} /∂{/:/∂}/ "{active}";∂
- cut !1 "{active}";∂
- find \x\ "{active}";∂
- end'
-
- AddMenu C 'while' ∂
- 'begin;∂
- set lvl `{ask}`;∂
- echo "while (x)∂n ∂{ ∂n ∂}";∂
- find \∂}\ "{active}"; cut !1 "{active}";∂
- find \x\ "{active}";∂
- adjust -l `evaluate {lvl} * {tab}` /∂{/:/∂}/ "{active}";∂
- find \x\ "{active}";∂
- end'
-